export function getData(LocalName) {
    let result = localStorage.getItem(LocalName);
    if (result) {
      return JSON.parse(result);
    }
    return [];
  }